package summer_vacation.zengguangchuan;

/**  作业8
 * Created by lenovo0 on 2015/8/19.
 */
public class Assignment_1 {
      public static void main(String[] args){
          int sum=0;
          for(int i=1;i<11;i++){
              int m=1;
              for(int j=1;j<i+1;j++){
                  m=m*j;
              }
              sum=sum+m;
          }
          System.out.println( +sum );
      }
}
